package org.jsbd.boss.dao.impl;

import java.util.List;
import java.util.Map;

import org.jsbd.boss.dao.IMiguMusicRetentAddStatisticsDao;
import org.jsbd.boss.domian.MiguMusicRetentAddStatistics;
import org.jsbd.boss.domian.MiguMusicRetentAddUser;
import org.jsbd.boss.domian.MiguMusicSearchVo;
import org.springframework.stereotype.Repository;

@Repository("miguMusicRetentAddStatisticsDao")
public class MiguMusicRetentAddStatisticsDaoImpl extends CrackBaseDao implements IMiguMusicRetentAddStatisticsDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddStatistics> getConfigExecTimesList(
			MiguMusicRetentAddStatistics miguMusicRetentAddStatistics) {
		return super.queryForList("qy_migu_music_retent_add_statistics.select_config_exec_times_list",
				miguMusicRetentAddStatistics);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddStatistics> getTodayDoNum(MiguMusicRetentAddStatistics miguMusicRetentAddStatistics) {
		return super.queryForList("qy_migu_music_retent_add_statistics.select_today_exec_count_list",
				miguMusicRetentAddStatistics);
	}

	@Override
	public Integer getRetentUserCount(MiguMusicRetentAddStatistics miguMusicRetentAddStatistics) {
		return super.queryForCount("qy_migu_music_retent_add_statistics.select_retent_user_count",
				miguMusicRetentAddStatistics);
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddStatistics> getDayList(MiguMusicRetentAddStatistics miguMusicRetentAddStatistics) {
		return super.queryForList("qy_migu_music_retent_add_statistics.select_day_list", miguMusicRetentAddStatistics);
	}

	@Override
	public Integer getDayListPageCount(MiguMusicRetentAddStatistics miguMusicRetentAddStatistics) {
		return super.queryForCount("qy_migu_music_retent_add_statistics.select_day_list_count", miguMusicRetentAddStatistics);
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddStatistics> getMiguDayList(MiguMusicSearchVo miguMusicSearchVo) {
		return super.queryForList("qy_migu_music_retent_add_statistics.select_music_day_list", miguMusicSearchVo);
	}
}
